LSTM

公式详解

遗忘门 (Forget Gate)

ft=σ(Wf[ht1,xt]+bf)

输入门(Input Gate)

it=σ(Wi[ht1,xt]+bi)cellt^=tanh(Wc[ht1,xt]+bc)

细胞状态更新(Cell State)

cellt=ftcellt1+itcellt^

输出门(Output Gate)

ot=σ(Wo[ht1,xt]+bo)hiddent=ottanh(cellt)